//
//  BBphoneInputVCViewController.m
//  UILbrary
//
//  Created by Apple on 2023/3/27.
//  Copyright © 2023 mac. All rights reserved.
//

#import "BBphoneInputVCViewController.h"
#import "BBphoneInputView.h"


@interface BBphoneInputVCViewController ()
@property(nonatomic, strong) BBphoneInputView *phoneView;
@end

@implementation BBphoneInputVCViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor lightGrayColor];
    [self.view addSubview:self.phoneView];
    
    [self.phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.view.mas_left).offset(20);
        make.right.mas_equalTo(self.view.mas_right).offset(-20);
        make.centerY.mas_equalTo(self.view);
        make.height.mas_equalTo(50);

    }];
}

- (BBphoneInputView *)phoneView
{
    if(!_phoneView){
        _phoneView = [BBphoneInputView new];
        _phoneView.backgroundColor = [UIColor whiteColor];
    }
    return _phoneView;
}


@end

